﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VietThinks.Model
{
    public class Role:DomainEntity<int>
    {
        public Role()
        {
             this.Rights = new List<RightInRole>();
        }
        public virtual  string Code { get; set; }
        public virtual string Name { get; set; }
        public virtual bool Actived { get; set; }
        public virtual DateTime CreatedDate { get; set; }
        public virtual DateTime ModifiedDate { get; set; }
        public virtual IList<RightInRole> Rights { get; protected set; }
        //protected readonly IList<RightInRole> rightInRoles;


       // public virtual IEnumerable<RightInRole> RightInRoles { get { return this.rightInRoles.AsEnumerable(); } }
    }
}
